package com.itheima.test3;

public class Animal {
    public void eat(){
        System.out.println("喝水");
    }
}

class Cat extends Animal{
    public void eat(){
        System.out.println("猫吃鱼");
    }
}

